package com.cskaoyan.order.converter;

import com.cskaoyan.order.dal.entitys.OrderItem;
import com.cskaoyan.order.dto.OrderDetailResponse;
import com.cskaoyan.order.dto.OrderItemDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import java.util.List;

/**
 * @Author:WalterChan
 * @Decription:OrderItemConverter
 * @Date Created in 2023-01-11-20:01
 */
@Mapper(componentModel = "spring")
public interface OrderItemConverter {


    @Mappings({})
    OrderItemDto orderItem2OrderDetailResponse(OrderItem orderItem);

    @Mappings({})
    List<OrderItemDto> orderItem2OrderDetailResponseList(List<OrderItem>orderItem);


}
